package com.xjscrm.console.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xjscrm.common.entity.WwGroupMember;
import com.xjscrm.console.param.group.WwGroupMemberQuery;
import com.xjscrm.console.vo.WwGroupMemberVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface WwGroupMemberMapper {
    List<WwGroupMemberVo> getWwGroupMemberList(WwGroupMemberQuery wwGroupMemberQuery);


    int deleById(@Param("id") Long id, @Param("merId") Long merId);

    List<WwGroupMember> pageByGroupId(Page<WwGroupMember> page, @Param("merId") Long merId, @Param("groupId") String conversationId, @Param("keyword") String keyword);

    WwGroupMember getByGroupWxIdAndWxid(@Param("groupWxid") String groupWxid, @Param("wxid") String wxid, @Param("merId") Long merId);

    List<WwGroupMember> selectListByGroupWxIdAndWxid(@Param("groupWxid") String groupWxid, @Param("wxidList") List<String> wxid, @Param("merId") Long merId);

    Integer getCountByWxid(@Param("wxid") String wxid, @Param("merId") Long merId);

    WwGroupMember getById(@Param("id") Long id, @Param("merId") Long merId);
}
